home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / shareware / share_41 / assembler / !Assemble / error < prev    next >
Text File  |  1991-06-20  |  4KB  |  71 lines

  1. 0000BDB0                    OPT pass%
  2. 0000BDB0          
  3. 0000BDB0                    ; r1 stores the address of number 1
  4. 0000BDB0                    ; r2 stores the address of number 2
  5. 0000BDB0                    ; r3 stores the address of number 3
  6. 0000BDB0                    ; r4 stores the address of text 1
  7. 0000BDB0                    ; r5 stores the address of text 2
  8. 0000BDB0          
  9. 0000BDB0                    ; *****************************************
  10. 0000BDB0                    ; place your code here do not change the lines above
  11. 0000BDB0                    
  12. 0000BDB0                    ; NAME       clock
  13. 0000BDB0                    ; PURPOSE    displays the real time clock
  14. 0000BDB0                    ; DESIGN
  15. 0000BDB0                    ;            set up registers
  16. 0000BDB0                    ;            call operating system command
  17. 0000BDB0                    ;
  18. 0000BDB0                    ;
  19. 0000BDB0                    ; COMMENTS   uses OS_Word, an operating system call
  20. 0000BDB0                    ;            this takes the following parameters
  21. 0000BDB0                    ;            r0 = 14     this is the reason code since OS_Word
  22. 0000BDB0                    ;                        performs several tasks
  23. 0000BDB0                    ;            r1          points to an area of memory into which
  24. 0000BDB0                    ;                        the time will be placed
  25. 0000BDB0                    ;            [r1] = 0    this is the second parameter, zero means
  26. 0000BDB0                    ;                        read the clock
  27. 0000BDB0          
  28. 0000BDB0 E3A0000E           mov  r0, #14
  29. 0000BDB4 E1A01004           mov  r1, r4
  30. 0000BDB8 E3A06000           mov  r6, #0
  31. 0000BDBC E5816000           str  r6, [r1]
  32. 0000BDC0 EF000007           swi  "OS_Word"
  33. 0000BDC4          
  34. 0000BDC4          
  35. 0000BDC4 E1A0F00E           MOV R15, R14
  36. ÿ0000BDB0                    OPT pass%
  37. 0000BDB0          
  38. 0000BDB0                    ; r1 stores the address of number 1
  39. 0000BDB0                    ; r2 stores the address of number 2
  40. 0000BDB0                    ; r3 stores the address of number 3
  41. 0000BDB0                    ; r4 stores the address of text 1
  42. 0000BDB0                    ; r5 stores the address of text 2
  43. 0000BDB0          
  44. 0000BDB0                    ; *****************************************
  45. 0000BDB0                    ; place your code here do not change the lines above
  46. 0000BDB0                    
  47. 0000BDB0                    ; NAME       clock
  48. 0000BDB0                    ; PURPOSE    displays the real time clock
  49. 0000BDB0                    ; DESIGN
  50. 0000BDB0                    ;            set up registers
  51. 0000BDB0                    ;            call operating system command
  52. 0000BDB0                    ;
  53. 0000BDB0                    ;
  54. 0000BDB0                    ; COMMENTS   uses OS_Word, an operating system call
  55. 0000BDB0                    ;            this takes the following parameters
  56. 0000BDB0                    ;            r0 = 14     this is the reason code since OS_Word
  57. 0000BDB0                    ;                        performs several tasks
  58. 0000BDB0                    ;            r1          points to an area of memory into which
  59. 0000BDB0                    ;                        the time will be placed
  60. 0000BDB0                    ;            [r1] = 0    this is the second parameter, zero means
  61. 0000BDB0                    ;                        read the clock
  62. 0000BDB0          
  63. 0000BDB0 E3A0000E           mov  r0, #14
  64. 0000BDB4 E1A01004           mov  r1, r4
  65. 0000BDB8 E3A06000           mov  r6, #0
  66. 0000BDBC E5816000           str  r6, [r1]
  67. 0000BDC0 EF000007           swi  "OS_Word"
  68. 0000BDC4          
  69. 0000BDC4          
  70. 0000BDC4 E1A0F00E           MOV R15, R14
  71. ÿ